import request from "@/utils/request";

// 修改保存/ 禁用启用
export function adminOperation(data) {
  return request({
    url: "/sys/admin/operation",
    method: "post",
    data
  });
}

// 禁用启用
export function adminDisables(data) {
  return request({
    url: "sys/admin/disables",
    method: "post",
    data
  });
}
// 获取列表信息
export function adminList(data) {
  return request({
    url: "/sys/admin/list",
    method: "post",
    data
  });
}

// 验证用户名是否重复
export function adminChangeUser(data) {
  return request({
    url: "/sys/admin/changeUser",
    method: "post",
    data
  });
}

// 删除
export function admindeleteUser(data) {
  return request({
    url: "/sys/admin/deleteUser",
    method: "post",
    data
  });
}
